<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="./axios.js"></script>
</head>
<body>
    <h1>登录</h1>
    <input type="text" class="inp">
    <input type="text" class="pwd">
    <button class="btn">登录</button>

    <script>
        let inp=document.querySelector('.inp')
        let pwd=document.querySelector('.pwd')
        let btn=document.querySelector('.btn')
        btn.onclick = function() {
            axios.post('/log',{inp:inp.value,pwd:pwd.value}).then(run=>{
                console.log(run);
                
            })
        }
    </script>
</body>
</html>